<!DOCTYPE html>
<html>
<head>
    <title>订单表</title>
    <#include "/header.html">
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <div class="grid-btn">
            <#if shiro.hasPermission("pms:order:save")>
            <a class="btn btn-primary" disabled><i class="fa fa-plus"></i>&nbsp;新增</a>
        </#if>
        <#if shiro.hasPermission("pms:order:update")>
        <a class="btn btn-primary" disabled><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
    </#if>
    <#if shiro.hasPermission("pms:order:delete")>
    <a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
</#if>
</div>
<table id="jqGrid"></table>
<div id="jqGridPager"></div>
</div>

<div v-show="!showList" class="panel panel-default">
    <div class="panel-heading">{{title}}</div>
    <form class="form-horizontal">
        <div class="form-group">
            <div class="col-sm-2 control-label">订单编号</div>
            <div class="col-sm-10">
                <input type="text" class="form-control" v-model="order.orderNo" placeholder="订单编号"/>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-2 control-label">用户ID</div>
            <div class="col-sm-10">
                <input type="text" class="form-control" v-model="order.userId" placeholder="用户ID"/>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-2 control-label">用户类型(0线上用户，1线下用户)</div>
            <div class="col-sm-10">
                <input type="text" class="form-control" v-model="order.userType" placeholder="用户类型(0线上用户，1线下用户)"/>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-2 control-label">订单状态(0待确认，1已支付，2未支付，3取消，4退货，5完成)</div>
            <div class="col-sm-10">
                <input type="text" class="form-control" v-model="order.orderStatus" placeholder="订单状态(0待确认，1已支付，2未支付，3取消，4退货，5完成)"/>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-2 control-label">订单总金额</div>
            <div class="col-sm-10">
                <input type="text" class="form-control" v-model="order.totalPrice" placeholder="订单总金额"/>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-2 control-label">订单创建者</div>
            <div class="col-sm-10">
                <input type="text" class="form-control" v-model="order.createBy" placeholder="订单创建者"/>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-2 control-label">订单创建时间</div>
            <div class="col-sm-10">
                <input type="text" class="form-control" v-model="order.createTime" placeholder="订单创建时间"/>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-2 control-label">订单更新者</div>
            <div class="col-sm-10">
                <input type="text" class="form-control" v-model="order.updateBy" placeholder="订单更新者"/>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-2 control-label">订单更新时间</div>
            <div class="col-sm-10">
                <input type="text" class="form-control" v-model="order.updateTime" placeholder="订单更新时间"/>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-2 control-label">删除标识(0未删除，1已删除)</div>
            <div class="col-sm-10">
                <input type="text" class="form-control" v-model="order.deleteStatus" placeholder="删除标识(0未删除，1已删除)"/>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-2 control-label">订单备注</div>
            <div class="col-sm-10">
                <input type="text" class="form-control" v-model="order.remark" placeholder="订单备注"/>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-2 control-label"></div>
            <input type="button" class="btn btn-primary" id="btnSaveOrUpdate" data-loading-text="保存中..." @click="saveOrUpdate" value="确定"/>
            &nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
        </div>
    </form>
</div>
</div>

<script src="${request.contextPath}/statics/js/modules/pms/order.js?_${.now?long}"></script>
</body>
</html>